<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
<head>
<title><t:mutiLang langKey="jeect.platform"/></title>
<t:base type="jquery,easyui,tools,DatePicker,autocomplete"></t:base>
<link rel="shortcut icon" href="images/favicon.ico">
<style type="text/css">
a {
	color: Black;
	text-decoration: none;
}

a:hover {
	color: black;
	text-decoration: none;
}
/*update-start--Author:zhangguoming  Date:20140622 for：左侧树调整：加大宽度、更换节点图标、修改选中颜色*/
.tree-node-selected{
    background: #c2c2c2;
}
.tree-node-selected a{color:#fff;}
.layout-panel-west{left:1px !important; background-color:#444;}
.layout-panel-west .panel-header {background-color: #707070 !important;}
.layout-panel-west .panel-title {color: #eee;}
/*.layout-panel-west .panel-body{border-color:#aaa !important;}*/
.layout-panel-west .panel-body{border-color:white !important;}
/*update-end--Author:zhangguoming  Date:20140622 for：左侧树调整：加大宽度、更换节点图标、修改选中颜色*/
</style>
<SCRIPT type="text/javascript">

	$(function() {
		/**加载 首页 tab*/
        <c:if test="${not empty leader}">
        $('#maintabs').tabs('add', {
            title : '欢迎页',
            content : '<iframe src="loginController.do?chainHome" frameborder="0" style="border:0;width:100%;height:99.4%;"></iframe>'
        });
        </c:if>
        <c:if test="${empty leader}">
        $('#maintabs').tabs('add', {
            title : '首页',
            content : '<iframe src="loginController.do?home" frameborder="0" style="border:0;width:100%;height:99.4%;"></iframe>'
        });
        </c:if>


		
		$('#layout_jeecg_onlinePanel').panel({
			tools : [ {
				iconCls : 'icon-reload',
				handler : function() {
					$('#layout_jeecg_onlineDatagrid').datagrid('load', {});
				}
			} ]
		});
		
		$('#layout_east_calendar').calendar({
			fit : true,
			current : new Date(),
			border : false,
			onSelect : function(date) {
				$(this).calendar('moveTo', new Date());
			}
		});
		$(".layout-expand").click(function(){
			$('#layout_east_calendar').css("width","auto");
			$('#layout_east_calendar').parent().css("width","auto");
			$("#layout_jeecg_onlinePanel").find(".datagrid-view").css("max-height","200px");
			$("#layout_jeecg_onlinePanel .datagrid-view .datagrid-view2 .datagrid-body").css("max-height","180px").css("overflow-y","auto");
		});
		$("body").layout("remove","east");
	});
	var onlineInterval;
	
	function easyPanelCollapase(){
		window.clearTimeout(onlineInterval);
	}
	function easyPanelExpand(){
		onlineInterval = window.setInterval(function() {
			$('#layout_jeecg_onlineDatagrid').datagrid('load', {});
		}, 1000 * 20);
	}

    function panelCollapase(){
        $(".easyui-layout").layout('collapse','north');
    }
	
</SCRIPT>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<!-- 顶部-->
<div region="north" border="false" title="" style="BACKGROUND: #444444; height: 100px; padding: 1px; overflow: hidden;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td align="left" style="vertical-align: text-bottom">
        <img src="plug-in/login/images/logo.png" style="margin:10px 10px;">
        <c:if test="${not empty chainLogo}">
            <img src="plug-in/login/images/${chainLogo}" style="width:140px;height:80px;margin:10px 10px;">
        </c:if>
        <!--
            <img src="plug-in/login/images/toplogo.png" width="550" height="52" alt="">-->
    <!-- div style="position: absolute; top: 75px; left: 33px;">JEECG Framework <span style="letter-spacing: -1px;">3.4.3 GA</span></div> -->
    </td>
    <td align="right" nowrap>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr style="height: 25px;" align="right">
                <td style="" colspan="2">
                    <div>
	                    <div style="float: left; line-height: 25px; margin-left: 150px;">
	                        <span style="color: #f4f4f4" ><t:mutiLang langKey="common.user"/>:</span>
	                        <span style="color: #FFFFFF;text-decoration: underline;cursor: pointer;" 
	                        	onclick="add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword','','560px','120px')">${realName }</span>&nbsp;&nbsp;
	                        <span style="color: #f4f4f4">|</span>&nbsp;&nbsp;
	                        <%--
	                        <span style="color: #f4f4f4"><t:mutiLang langKey="current.org"/>:</span>
	                        <span style="color: #FFFFFF">${currentOrgName }</span>&nbsp;&nbsp;&nbsp;&nbsp;
	                                                
	                        --%>
                            <c:if test="${empty leader}">
                                <span style="color: #f4f4f4"><t:mutiLang langKey="common.role"/>:</span>
                                <span style="color: #FFFFFF">${roleName }</span>&nbsp;&nbsp;
                                <span style="color: #f4f4f4">|</span>
                            </c:if>
	                    </div>
                        <c:if test="${empty leader}">
                            <div style="float: left; line-height: 25px; margin-left: 10px;">
                                <div style="color: #ECAE01;text-decoration:underline; cursor: pointer;margin-right:10px;"
                                     onclick="add('提出意见或建议','zyOpinionController.do?goAdd','','710px','300px')">提出意见</div>
                            </div>
                        </c:if>

	                    <div style="float: left; line-height: 25px; margin-left: 18px;">
	                        <div style="right: 0px; bottom: 0px;">
		                        <%--
	                            <a href="javascript:void(0);" class=" " menu="#layout_north_kzmbMenu" iconCls="icon-comturn" style="color: #FFFFFF;line-height:25px;">
	                                <t:mutiLang langKey="common.control.panel"/>
	                            </a>&nbsp;&nbsp;
		                        --%>
	                            <%--
	                            <a href="javascript:void(0);" class=" " menu="#layout_north_zxMenu" iconCls="icon-exit" style="color: #FFFFFF; line-height:25px;" >
	                                <t:mutiLang langKey="common.logout"/>
	                            </a>
	                            --%>
	                            <div style="color: white;cursor: pointer;margin-right:10px;" 
	                            	onclick="exit('loginController.do?logout','<t:mutiLang langKey="common.exit.confirm"/>',1);">
	                                <t:mutiLang langKey="common.exit"/>
	                            </div>
	                        </div>
	                        <div id="layout_north_kzmbMenu" style="width: 100px; display: none;">
	                            <div onclick="openwindow('<t:mutiLang langKey="common.profile"/>','userController.do?userinfo')">
	                                <t:mutiLang langKey="common.profile"/>
	                            </div>
	                            <div class="menu-sep"></div>
	                            <div onclick="add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword')">
	                                <t:mutiLang langKey="common.change.password"/>
	                            </div>
	                            <div class="menu-sep"></div>
	                            <div onclick="add('<t:mutiLang langKey="common.change.style"/>','userController.do?changestyle')">
	                                <t:mutiLang langKey="common.change.style"/>
	                            </div>
	                        </div>
	                        <%--
	                        <div id="layout_north_zxMenu" style="width: 100px; display: none;">
	                            <div onclick="exit('loginController.do?logout','<t:mutiLang langKey="common.exit.confirm"/>',1);">
	                                <t:mutiLang langKey="common.exit"/>
	                            </div>
	                        </div>
	                    	--%>
	                    </div>
	                    <%--update-begin--Author:JueYue  Date:20140616 for：首页上方可以折叠--%>
	                    <%--
	                    <div style="float: left; margin-left: 8px;margin-right: 5px; margin-top: 5px;">
	                        <img src="plug-in/easyui/themes/default/images/layout_button_up.gif"
	                             style="cursor:pointer" onclick="panelCollapase()" />
	                    </div>
	                    --%>
	                    <%--update-end--Author:JueYue  Date:20140616 for：首页上方可以折叠--%>
	                    <div style="float: left;color: white;line-height: 25px;margin-right: 10px;">&gt;</div>
                    </div>
                </td>
            </tr>
            <c:if test="${! empty barcoCSA}">
                <tr style="height: 25px;" align="right">
                    <td>
                        <div style="color: white;margin-right:10px;">
                            <p>待发货数量：${cbs_deliner_count} 
                                发货异常数量：${CBS_DELIVER_ERROR_LOG_COUNT}</p>
                            <p>返件异常数量：${CBS_BACK_ERROR_LOG_COUNT} 
                                序列号验证异常数量：${CBS_SERVICE_ERROR_LOG__SN_COUNT}</p>
                        </div>
                    </td>
                </tr>
            </c:if>
            <c:if test="${! empty barcoHelpdesk}">
                <tr style="height: 25px;" align="right">
                    <td>
                        <div style="color: white;margin-right:30px;">
                            <p>HD组任务:服务单待处理数量：${CBS_SERVICE_COUNT}
                                备件申请待处理数量：${cbs_equipment_apply_COUNT}</p>
                            <p>HD我的任务:服务单待处理数量：${CBS_SERVICE_1_COUNT}
                                服务单处理中数量：${CBS_SERVICE_2_COUNT}</p>
                        </div>
                    </td>
                </tr>
            </c:if>
            <c:if test="${! empty admin}">
                <tr style="height: 25px;" align="right">
                    <td>
                        <div style="color: white;margin-right:40px;">
                            <p>服务单异常数量：${CBS_SERVICE_ERROR_LOG_COUNT}</p>
                            <p>序列号验证异常数量：${CBS_SERVICE_ERROR_LOG__SN_COUNT}</p>
                        </div>
                    </td>
                </tr>
            </c:if>
            <tr style="height: 80px;">
                <td colspan="2">
                    <div style="position: absolute; height: 80px; z-index: 999; top: 15px; text-align: center; margin: 0px 0px 0px -320px; left: 50%; width: auto;">
                        <ul class="shortcut">
                            <!-- 动态生成并赋值过来 -->
                        </ul>
                    </div>
                    <c:if test="${not empty leader}">
                        <script type="text/javascript">
                            $(function(){
                                $(".shortcut").hide();
                            })
                        </script>
                    </c:if>
                </td>
            </tr>
        </table>
    </td>
</tr>
</table>
</div>
<!-- 左侧-->
<div region="west" split="false" style="width: 200px; padding: 0px; ">
	<div class="easyui-panel" href="loginController.do?shortcut_top" title="<t:mutiLang langKey="common.navegation"/>" fit="true" border="false">
		<!-- 在原有的layout里嵌套一个panel 挪用title 去掉展开按钮 -->
	</div>
</div>
<!-- 中间-->
<div id="mainPanle" region="center" style="overflow: hidden;">
    <div id="maintabs" class="easyui-tabs" fit="true" border="false">
<%--        <div class="easyui-tab" title="<t:mutiLang langKey="common.dash_board"/>" style="padding: 1px; overflow: hidden;">--%>
<%--			<iframe scrolling="no" frameborder="0" src="loginController.do?home" style="width: 100%; height: 99.5%;"></iframe>--%>
<%--        </div>--%>
        <c:if test="${map=='1'}">
            <div class="easyui-tab" title="<t:mutiLang langKey="common.map"/>" style="padding: 1px; overflow: hidden;">
                <iframe name="myMap" id="myMap" scrolling="no" frameborder="0" src="mapController.do?map" style="width: 100%; height: 99.5%;"></iframe>
            </div>
        </c:if>
    </div>
</div>
<!-- 右侧 -->
<div collapsed="true" region="east" iconCls="icon-reload" title="<t:mutiLang langKey="common.assist.tools"/>" split="true" style="width: 190px;"
	data-options="onCollapse:function(){easyPanelCollapase()},onExpand:function(){easyPanelExpand()}">
    <div id="tabs" class="easyui-tabs" border="false" style="height: 240px">
        <div title='<t:mutiLang langKey="common.calendar"/>' style="padding: 0px; overflow: hidden; color: red;">
            <div id="layout_east_calendar"></div>
        </div>
    </div>
    <div id="layout_jeecg_onlinePanel" data-options="fit:true,border:false" title=<t:mutiLang langKey="common.online.user"/>>
        <table id="layout_jeecg_onlineDatagrid"></table>
    </div>
</div>
<!-- 底部 -->
<div region="south" border="false" style="height: 25px; overflow: hidden; background-color:#444;">
    <div align="center" style="color: #bbb; padding-top: 2px">&copy;
        <t:mutiLang langKey="common.copyright"/>
        <span class="tip">
            <a href="javascript:void(0)" title="中影巴可客户服务系统" style="color: #ccc;">中影巴可客户服务系统</a>
            <%--<t:mutiLang langKey="common.browser"/>:
            <a href="javascript:void(0)" title="中影巴可客户服务系统">中影巴可</a>--%>
        </span>
    </div>
</div>

<div id="mm" class="easyui-menu" style="width: 150px;">
    <div id="mm-tabupdate"><t:mutiLang langKey="common.refresh"/></div>
    <div id="mm-tabclose"><t:mutiLang langKey="common.close"/></div>
    <div id="mm-tabcloseall"><t:mutiLang langKey="common.close.all"/></div>
    <div id="mm-tabcloseother"><t:mutiLang langKey="common.close.all.but.this"/></div>
    <div class="menu-sep"></div>
    <div id="mm-tabcloseright"><t:mutiLang langKey="common.close.all.right"/></div>
    <div id="mm-tabcloseleft"><t:mutiLang langKey="common.close.all.left"/></div>
</div>
<script type="text/javascript">

</script>
</body>
</html>